import React, { Component } from 'react';
import higherOrder from './高阶组件函数'
class gjzj extends Component {
  constructor(props) {
    super(props);
    this.state = {  }
  }
  render() { 
    console.log(this.props)
    return ( 
      <div>
        <div>展示地方</div>
        <button onClick={this.seve}>修改</button>&nbsp;
        <button onClick={this.againSeve}>在修改</button>
      </div>
    );
  }
  seve = () => {
    this.props.xiugai('我不好')
  }
  againSeve = () => {
    this.props.onceshi('这样也可以')
  }
}
 
export default higherOrder(gjzj);